-- GENERATED SPELL FOR [Ethereum Life-Binder] --


function spell0_21702(pUnit, Event) --@Bind,n/a--
pUnit:FullCastSpellOnTarget(37480,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21702', 7500, 1)
end

function spell1_21702(pUnit, Event) --@Bind,n/a--
pUnit:FullCastSpellOnTarget(38900,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21702', 6343, 1)
end

function spell2_21702(pUnit, Event) --@Shadow Mend,Heal--
pUnit:FullCastSpellOnTarget(37479,pUnit)
pUnit:RegisterEvent('Sorts_21702', 2500, 1)
end

function spell3_21702(pUnit, Event) --@Shadow Mend,Heal--
pUnit:FullCastSpellOnTarget(38899,pUnit)
pUnit:RegisterEvent('Sorts_21702', 2000, 1)
end

function spell4_21702(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(15654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21702', 18000, 1)
end

function spell5_21702(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(34941,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21702', 18000, 1)
end

function Sorts_21702(pUnit, Event)
local choix_sorts_21702 = math.random(0, 5)
if choix_sorts_21702 == 0 then
pUnit:RegisterEvent('spell0_21702', 1, 1)
end
if choix_sorts_21702 == 1 then
pUnit:RegisterEvent('spell1_21702', 1, 1)
end
if choix_sorts_21702 == 2 then
pUnit:RegisterEvent('spell2_21702', 1, 1)
end
if choix_sorts_21702 == 3 then
pUnit:RegisterEvent('spell3_21702', 1, 1)
end
if choix_sorts_21702 == 4 then
pUnit:RegisterEvent('spell4_21702', 1, 1)
end
if choix_sorts_21702 == 5 then
pUnit:RegisterEvent('spell5_21702', 1, 1)
end
end

function mob21702_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21702', math.random(1500, 3000), 1)
end

function mob21702_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21702_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21702_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21702, 1, 'mob21702_Action')
RegisterUnitEvent(21702, 2, 'mob21702_Leave')
RegisterUnitEvent(21702, 3, 'mob21702_Kill')
RegisterUnitEvent(21702, 4, 'mob21702_Die')
